import json
inp_str = " {'k1':123, 'k2': '345',’k3’,’ares’} "
print(json.loads(inp_str))